package com.ozo.boot.common.email;

import com.ozo.boot.common.email.service.EmailService;
import com.ozo.boot.common.email.service.EmailServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.mail.javamail.JavaMailSender;

/**
 * 邮件自动配置
 *
 * @author qiangesoft
 * @date 2024-09-05
 */
@Configuration
public class EmailAutoConfiguration {

    @Bean
    public EmailService emailService(JavaMailSender javaMailSender) {
        return new EmailServiceImpl(javaMailSender);
    }

}
